// 搜索相关api
import request from '@/utils/request'
// 搜索词联想接口
export const suggestListApi = (q) => {
  return request({
    url: '/v1_0/suggestion',
    params: {
      q: q
    }
  })
}

// 获取搜索结果
export const getSearchResultApi = ({ keywords, page = 1, per_page = 10 }) => {
  return request({
    url: '/v1_0/search',
    params: {
      q: keywords,
      page: page,
      per_page: per_page
    }
  })
}
